<div class="box box-primary color-palette-box">
	
	<div class="box-body">
		<form class="js-ajax-form" action="{:Url('listorders')}" method="post">
			<div class="table-actions">
                <a class="btn btn-primary btn-ss btn-flat" href="{:Url('add')}"><i class="fa fa-plus-circle"></i> 添加栏目</a> 
				<button class="btn btn-primary btn-ss btn-flat js-ajax-submit" type="submit">排序</button>
			</div>
			<table class="table table-hover table-bordered" id="menus-table">
				<thead>
					<tr>
						<th width="80">排序</th>
						<th width="50">ID</th>
						<th>栏目名称</th>
						<th width="80">栏目类型</th>
						<th width="130">操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="vo"}
					<tr>
						<td>
							<input name='sort[{$vo.id}]' type='number' min='0' value='{$vo.sort}' class='form-control input-sm input-ss display_de width50' />
						</td>
						<td>{$vo.id}</td>
						<td>{$vo._name|raw}</td>
						<td>
							{if condition="$vo['type'] eq 1"}普通文章{/if}
							{if condition="$vo['type'] eq 2"}<font style="color:#00f">单页</font>{/if}
							{if condition="$vo['type'] eq 3"}栏目首页{/if}
						</td>
						<td>
							<div class="visible-md visible-lg hidden-sm hidden-xs">
								{if condition="$vo['type'] neq 2"}
                                <a href="{:Url('news/index',array('column_id'=>$vo['id']))}" class="btn btn-xs btn-info btn-flat" data-toggle="tooltip" data-placement="top" title="栏目的文章列表"><i class="fa fa-list"></i></a>
								{/if}
                                <a href="{:Url('add',array('parentid'=>$vo['id'],'type'=>$vo['type']))}" class="btn btn-xs btn-success btn-flat" data-toggle="tooltip" data-placement="top" title="添加子栏目"><i class="fa fa-plus-circle"></i></a>
                                <a href="{:Url('edit',array('id'=>$vo['id']))}" class="btn btn-xs btn-primary btn-flat" data-toggle="tooltip" data-placement="top" title="编辑栏目"><i class="fa fa-edit"></i></a>
                                <a href="{:Url('delete',array('id'=>$vo['id']))}" class="btn btn-xs btn-danger btn-flat js-ajax-del" data-toggle="tooltip" data-placement="top" title="删除当前栏目"><i class="fa fa-trash-o"></i></a>
							</div>
						</td>
					</tr>
					{/volist}
				</tbody>
				<tfoot>
					<tr>
						<th width="80">排序</th>
						<th width="50">ID</th>
						<th>栏目名称</th>
						<th width="80">栏目类型</th>
						<th width="210">操作</th>
					</tr>
				</tfoot>
			</table>
			<div class="table-actions">
				<button class="btn btn-primary btn-ss btn-flat js-ajax-submit" type="submit">排序</button>
			</div>
		</form>
	</div>

</div>